import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
const routes: RouteRecordRaw[] = [
  { path: '/', redirect: '/Login' },
  { 
    path: '/Login',
    name: 'Login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/Topic',
    name: 'Topic',
    component: () => import('@/views/Topic.vue')
  }, 
  {
    path: '/Ranking',
    name: 'Ranking',
    component: () => import('@/views/Ranking.vue')
  },
  {
    path: '/Admin',
    name: 'Admin',
    component: () => import('@/views/Admin.vue')
  }
  // {
  //   path: '/profile',
  //   name: 'Profile',
  //   component: () => import('@/views/ProfileView.vue'),
  //   meta: { requiresAuth: true }
  // }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})
export default router